package cn.bluedot.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bluedot.dao.LogManageDao;
import cn.bluedot.model.Log;
import cn.bluedot.service.LogManageService;

@Service
public class LogManageServiceImpl implements LogManageService {
    @Autowired
    LogManageDao logManageDao;
    @Override
    public List<Log> selectAllLog() {
        
        return logManageDao.selectAllLog() ;
    }
    @Override
    public List<Log> selectLogByDate(Date date) {
        return  logManageDao.selectLogByDate(date);
    }
    @Override
    public List<Log> selectLogByRole(String role) {
        return logManageDao.selectLogByRole(role);
    }
    @Override
    public List<Log> selectLogByusernameOrtrueName(String name) {
        return logManageDao.selectLogByusernameOrtrueName(name);
    }
    @Override
    public int saveLogInfo(Log log) {
        return logManageDao.savaLogInfo(log);
    }

}
